<?php

namespace app\admin\model;

use app\common\model\BaseModel as Model;


class AdminLog extends Model
{

    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = '';
    //自定义日志标题
    protected static $title = '';
    //自定义日志内容
    protected static $content = '';
    
    


    public function admin()
    {
        return $this->belongsTo('Admin', 'admin_id')->bind(['username' => 'nickname']);
    }
}
